Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Battery-related Enum Naming #24265

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

sdomoszlai13
Copy link

@sdomoszlai13 sdomoszlai13 commented Jan 29, 2025

Solved Problem

The battery-related enums (source and state) contain a leading 'BATTERY_' string in the enums's member names. The naming should to be clear enough without that string.

Solution

Remove the leading 'BATTERY_' string in the enums's member names.

Changelog Entry

For release notes:
Simplified battery-related enum naming

@sdomoszlai13 sdomoszlai13 force-pushed the rename-batt-enums branch 4 times, most recently from 152f3e3 to f630655 Compare January 29, 2025 15:26
Copy link
Member

@MaEtUgR MaEtUgR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the enum naming more sensible 👍
I increased the version number of the message battery_status since it's now versioned and this is the first change to the message since that was done. I'm not sure if there's any compatibility issue when changing messages before #24113 @bkueng could you clarify?

This is just a warm up to splitting up the message in #24111

@sdomoszlai13 sdomoszlai13 marked this pull request as ready for review January 31, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants